package com.woniuxy.woniubook.service.impl;

import com.woniuxy.woniubook.entity.Booktype;
import com.woniuxy.woniubook.mapper.BooktypeMapper;
import com.woniuxy.woniubook.service.BooktypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wugd
 * @since 2022-11-16 02:13:11
 */
@Service
public class BooktypeServiceImpl extends ServiceImpl<BooktypeMapper, Booktype> implements BooktypeService {

    @Override
    @Cacheable(value="bookType",key="#root.methodName")
    public List<Booktype> list() {
        return super.list();
    }
}
